<template>
  <div class="tpl-wrapper">
    <h3>i am in tpl </h3>
    <input type="text" v-model="val">
  </div>
</template>

<script type="text/ecmascript-6">
  import tool from 'src/util/tool';
  import util from '_util/index';
  import logic from '_logic';


  export default {
    data() {
      return {
        val: '',
      }
    },
    components: {},
    methods: {},
    watch: {
      val: function (val, old) {
        if (val != old) {
          this.$emit('setVo', this.field.name, val)
        }
      },
    },
    computed: {},
    props: ['field'],
    created() {
    },
    mounted() {
    }
  };
</script>

<style scoped>
</style>
